package com.hr.runnerbuddy;

//import com.hr.runnerbuddy.overzicht.Parcourlijst;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.Toast;

public class Hoofdmenu extends Activity {
		
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.hoofdmenu);
    }
    
    @Override
    public void onResume(){
    	super.onResume();
    	final ImageButton button1 = (ImageButton) findViewById(R.id.imageButton1);
        button1.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	Toast.makeText(getApplicationContext(), "Parcours", Toast.LENGTH_SHORT).show();
            	Intent mainIntent = new Intent(Hoofdmenu.this,Parcourkeuze.class);
                Hoofdmenu.this.startActivity(mainIntent);
                Hoofdmenu.this.finish();
            }
        });
    
        final ImageButton button2 = (ImageButton) findViewById(R.id.imageButton2);
        button2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                // Perform action on click
            	Toast.makeText(getApplicationContext(), "Resultaten", Toast.LENGTH_SHORT).show();
            	//Intent mainIntent = new Intent(Hoofdmenu.this, Parcourlijst.class);
                //Hoofdmenu.this.startActivity(mainIntent);
                //Hoofdmenu.this.finish();
            }
        });
    }
    
	@Override
	protected void onPause() {
		super.onPause();
	}
}